#include "TcpServer.hpp"

void usage(string str)
{
    cerr << "Please use: " << str << " prot" << endl;
}

int main(int agrc, char *argv[])
{
    if (agrc != 2)
    {
        usage(argv[0]);
        exit(TCPSERVER_ERR);
    }

    uint16_t prot = stoi(argv[1]);
    TcpServer tcp(prot);
    tcp.Init();
    tcp.Run();
}